<?php
/**
 * Log informacneho systemu
 * @author Tomas Srna
 * @package bakalarka
 */

class LogModel extends Model
{
	protected function __construct()
	{
		$this->_table = 'log';
		$this->_fields = array(
			new Field('id', 'int', true, false, NULL, true),
			new Field('date', 'datetime'),
			new Field('user', 'varchar(100)', false, true),
			new Field('type', 'varchar(10)'),
			new Field('message', 'text')
		);
	}
}
 
